/**
 * Created by kangdaye on 16/6/13.
 */
app.factory('distrVipCache', function() {
    return{
        listTab : [
            {name : '所有分销会员'},
            {id : 0,name : '未审核'},
            {id : 1,name : '已审核'},
            {id : 9,name : '审核不通过'}
        ],
        listTableHeader : [
            {displayName:'会员ID', field: 'uid', width:'8%'},
            {displayName:'真实姓名', field: 'name', width:'8%'},
            {displayName:'手机', field: 'phone', width:'10%'},
            {displayName:'身份证号码', field: 'idCarNo',width:'10%'},
            {displayName:'销售额(元)', field: 'totalSales',width:'10%'},
            {displayName:'可用佣金余额(元)', field: 'commission', width:'10%'},
            {displayName:'佣金收入总额(元)', field: 'totalCommission', width:'15%'},
            {displayName:'会员等级', field: 'level', width:'10%'},
            {displayName:'状态', width:'10%',cellTemplate:'' +
                '<div class="cor-green" ng-if="row.status === 1">审核通过</div>'+
                '<div ng-if="!row.status">未审核</div>'+
                '<div class="cor-red" ng-if="row.status === 9">审核失败</div>'
            },
            {displayName:'操作',width:'14%',cellTemplate:'<div class="operation">' +
                    '<a ng-click="evt.entity.audit(row.uid,row.id)" ng-if="!row.status || row.status === 1">{{!row.status ? "审核" : "发回重审"}}</a>' +
                    '<a href="javascript:;" ng-click="evt.entity.detail(row.uid,row.auditlog)" class="ml-10">查看</a>' +
                '</div>'
            }
        ]
    }
});
